package Core;

import java.util.ArrayList;
import java.util.Scanner;

public class HumanStrategy extends Strategy
{
    public Position chooseMove(ArrayList<Position> moves, Board board)
    {
	
	Position p = new Position(-1,-1);
	while (!moves.contains(p))
	{
	        Scanner s = new Scanner(System.in);
		String result = s.nextLine();
		String[] str= result.split(",");
		p = new Position(Integer.valueOf(str[0]),Integer.valueOf(str[1]));
	}
	this.lastPosition = p;
	return p;
    }
}
